implement EIP-234: add blockHash param for eth_getLogs #490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
This PR fix #457 by support parameter
blockHashin the input of methodeth_getLogs.Notice: this function is removed by PR #131.
Types of changes
What types of changes does your code introduce to XDC network?
Put an
✅in the boxes that applyImpacted Components
Which part of the codebase this PR will touch base on,
Put an
✅in the boxes that applyChecklist
Put an
✅in the boxes once you have confirmed below actions (or provide reasons on not doing so) thatTest
request:
response:
{ "jsonrpc": "2.0", "id": 6003, "result": [ { "address": "0x0000000000000000000000000000000000000089", "topics": [ "0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54" ], "data": "0x00000000000000000000000096509a56f0243b10a2706391b95af449712da69900000000000000000000000000000000000000000000000000000000000005dcce1d2eca75e10aeea5edf82ac30b24d226881a4e6eae4b89120b73978862aa9c", "blockNumber": "0x5de", "transactionHash": "0x7f58b867d33756af9a5d42eba7955f943a99a05516da672a77210300152b08ce", "transactionIndex": "0x0", "blockHash": "0xd56a4b9835ad8067cf87e29d1a12437369fb4a4bd1a5b5cf5d538e7fd34806e4", "logIndex": "0x0", "removed": false }, { "address": "0x0000000000000000000000000000000000000089", "topics": [ "0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54" ], "data": "0x0000000000000000000000002526fdebae27162e45da84e5e2f00abaa1a1cc8c00000000000000000000000000000000000000000000000000000000000005dcce1d2eca75e10aeea5edf82ac30b24d226881a4e6eae4b89120b73978862aa9c", "blockNumber": "0x5de", "transactionHash": "0x729eb00a6f54f1fb7aaf6f012b6b57b263f820a2b3b6781b42a6c84314171a8c", "transactionIndex": "0x1", "blockHash": "0xd56a4b9835ad8067cf87e29d1a12437369fb4a4bd1a5b5cf5d538e7fd34806e4", "logIndex": "0x1", "removed": false } ] }request:
response:
{ "jsonrpc": "2.0", "id": 6003, "error": { "code": -32602, "message": "too many arguments, want at most 1" } }request:
response:
{ "jsonrpc": "2.0", "id": 6002, "result": [] }request:
response
{ "jsonrpc": "2.0", "id": 6002, "result": [ { "address": "0x0000000000000000000000000000000000000089", "topics": [ "0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54" ], "data": "0x0000000000000000000000002526fdebae27162e45da84e5e2f00abaa1a1cc8c000000000000000000000000000000000000000000000000000000000000000f4027ffb371d54b5c072b618a00724fda5907ff324e557f3be50102502597a60e", "blockNumber": "0x10", "transactionHash": "0xdea69962667164bfa0a76d2678c0dc9f9a3d7226a8c59e9d6a4ba3796f219067", "transactionIndex": "0x0", "blockHash": "0x07745cd6967cd94bd401bbdfe4b44f6b3953ff11e1a59bc284dc466647f044db", "logIndex": "0x0", "removed": false }, { "address": "0x0000000000000000000000000000000000000089", "topics": [ "0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54" ], "data": "0x00000000000000000000000096509a56f0243b10a2706391b95af449712da699000000000000000000000000000000000000000000000000000000000000000f4027ffb371d54b5c072b618a00724fda5907ff324e557f3be50102502597a60e", "blockNumber": "0x10", "transactionHash": "0x0ac0dca577b9dc3bd06e7f58dc55225178b8da24920ebfec6f17916268165ea9", "transactionIndex": "0x1", "blockHash": "0x07745cd6967cd94bd401bbdfe4b44f6b3953ff11e1a59bc284dc466647f044db", "logIndex": "0x1", "removed": false }, { "address": "0x0000000000000000000000000000000000000089", "topics": [ "0x62855fa22e051687c32ac285857751f6d3f2c100c72756d8d30cb7ecb1f64f54" ], "data": "0x00000000000000000000000077cb85ae0ae070dfc013ba1a5b3ee1ced4a059a7000000000000000000000000000000000000000000000000000000000000000f4027ffb371d54b5c072b618a00724fda5907ff324e557f3be50102502597a60e", "blockNumber": "0x10", "transactionHash": "0x148c22e50bd86b8109679b6e0c51be5dbd2813e8779c2fafcd25fb198e6183f9", "transactionIndex": "0x2", "blockHash": "0x07745cd6967cd94bd401bbdfe4b44f6b3953ff11e1a59bc284dc466647f044db", "logIndex": "0x2", "removed": false } ] }